﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Rodunu.Business.Models.Movies;
using Rodunu.Services.Amazon;
using Rodunu.Services.Interfaces;

namespace AmazonFetch
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IAmazonService amazonService = new AmazonService();
            IList<Title> Titles = amazonService.Search(textBox1.Text);
            dataGridView1.DataSource = Titles;
        }
    }
}
